<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>



<title></title><span id="navlink">功能管理  >> 下拉框管理  </span>



<s:form action="dropdownupdate" method="post">
<table class="table_box table_bottom_border" cellspacing="0" cellpadding="0">
	<tr>
	
		<th>名称</th>
		<th>操作</th>
	</tr>
	
<s:iterator value="dclist" status="index" var="var">


	<input  type="hidden" name="listid"  value="${id }"   />
	<input  type="hidden" name="listpcode"  value="${pcode }"  />
	<input  type="hidden" name="listtype"  value="${type }"  />
	<tr>
		<td align="center"><input  type="text" name="listname"  value="${name}" /></td>
		<td align="center">
		
		<a href="dropdownupdate!deleteCm?did=${id }&type=${type}" onclick="return confirm('确认删除？');">删除</a>
		</td>	
	</tr>
	
</s:iterator>

<s:submit value="修改" method="updateAll" onclick="return confirm('确认修改？');"></s:submit>

</table>
</s:form>


<s:form action="dropdownupdate" method="post">
	<input  type="text" name="cm.type"  value="${type }"  style="display:none;" />
		<td align="center"><input  type="text" name="cm.name"  /></td>
		<td align="center"><s:submit  value="添加" method="addCm" onclick="return confirm('确认添加？');"></s:submit></td>
</s:form>

<div id="button_area"><div class="pagebar"></div></div>
<!--
		
		<s:submit  value="删除" method="deleteCm" onclick="return confirm('确认删除？');"></s:submit>

 
 -->